import sys

A = set(open(sys.argv[1]).readlines())

open("res_" + sys.argv[1], 'w').writelines(A)
